package com.kaili.basic.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.kaili.basic.pojo.dto.FacilityVersionAddDto;
import com.kaili.basic.pojo.dto.FacilityVersionDto;
import com.kaili.basic.pojo.entity.FacilityVersion;
import com.kaili.basic.pojo.entity.FacilityVersionQuery;
import com.kaili.basic.pojo.vo.FacilityVersionVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
*  mapper
* @author:limkean
* @Time: 2019-07-24
* @Copyright: ©  杭州凯立通信有限公司 版权所有
* @Warning: 本内容仅限于公司内部传阅,禁止外泄或用于其它商业目的
*/
@Mapper
public interface FacilityVersionMapper extends BaseMapper<FacilityVersion> {

    String getUsableCode();

    void createdVersionCode(Map<String, Object> map);

    void updateVersionCodeStatusUsing(String code);

    void updateVersionCodeStatusUsed(String code);

    void updateVersionCodeStatusUnuse(String code);

    List<FacilityVersion> queryAllVersion();

    List<FacilityVersionVO> queryFacilityVersionByConditions(Pagination pagination, FacilityVersionDto dto);

    int addFacilityVersion(FacilityVersionVO facilityVersionVO);

    FacilityVersion queryVersionByCode(String versionCode);
}
